package com.laosg.spring.small.core02.exception;

/**
 * <p>description: some thing </p>
 *
 * @author kevin
 * @date 8/16/21
 */
public class UserService {

    //需求1： 这里有构造参数怎么办？
    private String name;

    private UserDao userDao;



    public String queryUserInfo() {
        System.out.println("query user info "+userDao.queryUserName(name));
        return "query user info";
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public String toString() {
        return "UserService{" +
                "name='" + name + '\'' +
                '}';
    }
}
